﻿using System.Web.Mvc;
using Isaac.Joy.Identity.Module;

namespace Isaac.Joy.Identity.Web.DtCms.Controllers
{
    /// <summary>
    /// 包含用户仓储服务的Controlller基类
    /// </summary>
    public class RepositoryController : Controller
    {
        /// <summary>
        /// 用户仓储服务
        /// </summary>
        protected readonly IRepository Repository;
        public RepositoryController()
        {
            Repository = Activator.BundleContext.GetFirstOrDefaultService<IRepository>();
        }
    }
}
